package com.nuoniu.sibanyun.entity.erp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;

/**
 * <p>
 *
 * </p>
 *
 * @author baiqiang
 * @since 2020-09-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("fab_period")
@ApiModel(value="ErpPeriod对象", description="")
public class ErpPeriod extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "所在年度 ")
    @TableField("current_year")
    private Integer currentYear;

    @ApiModelProperty(value = "当前期间 ")
    @TableField("current_period")
    private Integer currentPeriod;

    @ApiModelProperty(value = "开始时间 ")
    @TableField("begin_date")
    private LocalDate beginDate;

    @ApiModelProperty(value = "结束时间")
    @TableField("end_date")
    private LocalDate endDate;

    @ApiModelProperty(value = "采购结账状态")
    @TableField("pu_terminal_state")
    private Integer puTerminalState;

    @ApiModelProperty(value = "库存结账状态")
    @TableField("in_terminal_state")
    private Integer inTerminalState;

    @ApiModelProperty(value = "销售结账状态")
    @TableField("sa_terminal_state")
    private Integer saTerminalState;

    @ApiModelProperty(value = "财务结账状态")
    @TableField("fi_terminal_state")
    private Integer fiTerminalState;

    @ApiModelProperty(value = "存货结账状态")
    @TableField("inventory_terminal_state")
    private Integer inventoryTerminalState;

    @ApiModelProperty(value = "是否调整期 ")
    @TableField("is_adjustment")
    private Boolean isAdjustment;


}
